﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 抗菌药物申请单
    /// </summary>
    public partial class AntimicrobialTbApply
    {
        /// <summary>
        /// 主键 申请单ID
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 院区ID
        /// </summary>
        public int HospitalId { get; set; }
        /// <summary>
        /// 医嘱ID
        /// </summary>
        public int AdvId { get; set; }
        /// <summary>
        /// 住院流水号
        /// </summary>
        public int RegNo { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string HospNo { get; set; } = null!;
        /// <summary>
        /// 患者ID
        /// </summary>
        public int PatId { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? PatName { get; set; }
        /// <summary>
        /// 性别编码
        /// </summary>
        public int? SexCode { get; set; }
        /// <summary>
        /// 性别名称
        /// </summary>
        public string? SexName { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public string? Age { get; set; }
        /// <summary>
        /// 体温
        /// </summary>
        public decimal? Temperature { get; set; }
        /// <summary>
        /// 体温单位
        /// </summary>
        public string? TemperatureUnit { get; set; }
        /// <summary>
        /// 体重
        /// </summary>
        public decimal? Weight { get; set; }
        /// <summary>
        /// 体重单位
        /// </summary>
        public string? WeightUnit { get; set; }
        /// <summary>
        /// 入院科室编码
        /// </summary>
        public string? InDeptCode { get; set; }
        /// <summary>
        /// 入院科室名称
        /// </summary>
        public string? InDeptName { get; set; }
        /// <summary>
        /// 过敏信息
        /// </summary>
        public string? AlleryInfo { get; set; }
        /// <summary>
        /// 诊断编码
        /// </summary>
        public string? DiagCode { get; set; }
        /// <summary>
        /// 诊断名称
        /// </summary>
        public string? DiagName { get; set; }
        /// <summary>
        /// 药品ID
        /// </summary>
        public int ItemId { get; set; }
        /// <summary>
        /// 药品名称
        /// </summary>
        public string ItemName { get; set; } = null!;
        /// <summary>
        /// 紧急使用 1是 否
        /// </summary>
        public bool? EmUseFlag { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? DrugGuage { get; set; }
        /// <summary>
        /// 剂量
        /// </summary>
        public string? Dose { get; set; }
        /// <summary>
        /// 剂量单位
        /// </summary>
        public string? DoseUnit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Qty { get; set; }
        /// <summary>
        /// 数量单位
        /// </summary>
        public string? QtyUnit { get; set; }
        /// <summary>
        /// 频率
        /// </summary>
        public int? Freq { get; set; }
        /// <summary>
        /// 频率类型
        /// </summary>
        public int? FreqType { get; set; }
        /// <summary>
        /// 频率参数
        /// </summary>
        public int? FreqParam { get; set; }
        /// <summary>
        /// 给药途径编码
        /// </summary>
        public int? Usage { get; set; }
        /// <summary>
        /// 用药天数
        /// </summary>
        public int? ExecDay { get; set; }
        /// <summary>
        /// 用药目的（治疗用药/预防用药）取编码体系DRJCM015
        /// </summary>
        public string? PurposeCode { get; set; }
        /// <summary>
        /// 治疗用药-病原学检测  取编码体系DRJCM017
        /// </summary>
        public string? PathogenTestCode { get; set; }
        /// <summary>
        /// 治疗用药-病原菌
        /// </summary>
        public string? PathogenBacteria { get; set; }
        /// <summary>
        /// 治疗用药-未检测理由
        /// </summary>
        public string? UnTestReason { get; set; }
        /// <summary>
        /// 治疗用药-药敏试验  取编码体系DRJCM017
        /// </summary>
        public string? SensitiveTest { get; set; }
        /// <summary>
        /// 治疗用药-感染部位 取编码体系DRJCM022
        /// </summary>
        public string? InfectionSite { get; set; }
        /// <summary>
        /// 预防用药-预防用药 取编码体系DRJCM018
        /// </summary>
        public string? PreUseCode { get; set; }
        /// <summary>
        /// 非手术预防项目编码 取编码体系DRJCM020
        /// </summary>
        public string? UnOperPreItemCode { get; set; }
        /// <summary>
        /// 非手术预防项目其他时输入内容
        /// </summary>
        public string? UnOperPreItemContent { get; set; }
        /// <summary>
        /// 申请单状态 1有效 0无效
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 审核状态 取编码体系DRJCM021
        /// </summary>
        public string? ApprovalStatus { get; set; }
        /// <summary>
        /// 申请病区ID
        /// </summary>
        public int? ApplyWardCode { get; set; }
        /// <summary>
        /// 申请病区名称
        /// </summary>
        public string? ApplyWardName { get; set; }
        /// <summary>
        /// 申请科室ID
        /// </summary>
        public int? ApplyDeptCode { get; set; }
        /// <summary>
        /// 申请科室名称
        /// </summary>
        public string? ApplyDeptName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? Creater { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public int? Updater { get; set; }
    }
}
